using System;

namespace KeyAuthService.Models
{
    /// <summary>
    /// WebSocket连接信息
    /// </summary>
    public class ConnectionInfo
    {
        /// <summary>
        /// 客户端ID
        /// </summary>
        public string ClientId { get; set; } = string.Empty;

        /// <summary>
        /// 连接时间
        /// </summary>
        public DateTime ConnectedAt { get; set; } = DateTime.Now;

        /// <summary>
        /// 远程地址
        /// </summary>
        public string RemoteAddress { get; set; } = string.Empty;

        /// <summary>
        /// 最后活动时间
        /// </summary>
        public DateTime LastActivity { get; set; } = DateTime.Now;
        
        /// <summary>
        /// 认证使用的密钥名称
        /// </summary>
        public string AuthKeyName { get; set; } = string.Empty;

        /// <summary>
        /// 认证使用的密钥地址
        /// </summary>
        public string KeyAddress { get; set; } = string.Empty;
    }
} 